<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    

    protected $table = 'role';

     /**
     * The primary key for the model.
     *
     * @var string
     */
    protected $primaryKey = 'Id';
    

    public function users() {
        return $this->belongsToMany('App\User', 'role_user', 'rid', 'uid');
    }

    
}
